const express = require("express");
const path = require("path");
const router = express.Router();
const controller = require("../controller/index.js");

router.get("/trans", (req, res) => {
  res.setHeader("Content-Type", "text/html");
  res.sendFile(path.join(__dirname, "../template/trans.html"));
});
router.post("/transText", controller.transText());

module.exports = router;
